package org.example.demo.test.search.strategy.first;


import com.example.demo.test.AbstractStrategyRouter;
import com.example.demo.test.StrategyHandler;
import com.example.demo.test.parm.InClass;
import com.example.demo.test.parm.OutClass;
import com.example.demo.test.search.resort.ReABTitleSort;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ABTitleSort extends AbstractStrategyRouter<InClass, OutClass> implements StrategyHandler<InClass,OutClass> {
    @Override
    protected StrategyMapper<InClass, OutClass> registerStrategyMapper() {
        return new StrategyMapper<InClass, OutClass>() {
            @Override
            public StrategyHandler<InClass, OutClass> get(InClass param) {
                 return new ReABTitleSort();
            }
        };
    }

    @Override
    public OutClass apply(InClass param) {
        return null;
    }
}
